Struct primitives::Channel
source · pub struct Channel {
pub leader: ValidatorId,
pub follower: ValidatorId,
pub guardian: Address,
pub token: Address,
pub nonce: Nonce,
}
Fields
leader: ValidatorId
follower: ValidatorId
guardian: Address
token: Address
nonce: Nonce
Implementations
sourceimpl Channel
impl Channel
pub fn id(&self) -> ChannelId
pub fn find_validator(
&self,
validator: ValidatorId
) -> Option<Validator<ValidatorId>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Channel
impl Eq for Channel
impl StructuralEq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more