pub enum SubscribeReposMessage<'a> {
Commit(Box<Commit<'a>>),
Sync(Box<Sync<'a>>),
Identity(Box<Identity<'a>>),
Account(Box<Account<'a>>),
Info(Box<Info<'a>>),
Unknown(Data<'a>),
}Variants§
Commit(Box<Commit<'a>>)
Sync(Box<Sync<'a>>)
Identity(Box<Identity<'a>>)
Account(Box<Account<'a>>)
Info(Box<Info<'a>>)
Unknown(Data<'a>)
Implementations§
Source§impl<'a> SubscribeReposMessage<'a>
impl<'a> SubscribeReposMessage<'a>
Sourcepub fn decode_framed<'de: 'a>(
bytes: &'de [u8],
) -> Result<SubscribeReposMessage<'a>, DecodeError>
pub fn decode_framed<'de: 'a>( bytes: &'de [u8], ) -> Result<SubscribeReposMessage<'a>, DecodeError>
Decode a framed DAG-CBOR message (header + body).
Trait Implementations§
Source§impl<'a> Clone for SubscribeReposMessage<'a>
impl<'a> Clone for SubscribeReposMessage<'a>
Source§fn clone(&self) -> SubscribeReposMessage<'a>
fn clone(&self) -> SubscribeReposMessage<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SubscribeReposMessage<'a>
impl<'a> Debug for SubscribeReposMessage<'a>
Source§impl<'de, 'a> Deserialize<'de> for SubscribeReposMessage<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for SubscribeReposMessage<'a>where
'de: 'a,
Source§fn 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
Source§impl<'a> IntoStatic for SubscribeReposMessage<'a>
impl<'a> IntoStatic for SubscribeReposMessage<'a>
Source§type Output = SubscribeReposMessage<'static>
type Output = SubscribeReposMessage<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for SubscribeReposMessage<'a>
impl<'a> PartialEq for SubscribeReposMessage<'a>
Source§impl<'a> Serialize for SubscribeReposMessage<'a>
impl<'a> Serialize for SubscribeReposMessage<'a>
impl<'a> Eq for SubscribeReposMessage<'a>
impl<'a> StructuralPartialEq for SubscribeReposMessage<'a>
Auto Trait Implementations§
impl<'a> !Freeze for SubscribeReposMessage<'a>
impl<'a> RefUnwindSafe for SubscribeReposMessage<'a>
impl<'a> Send for SubscribeReposMessage<'a>
impl<'a> Sync for SubscribeReposMessage<'a>
impl<'a> Unpin for SubscribeReposMessage<'a>
impl<'a> UnsafeUnpin for SubscribeReposMessage<'a>
impl<'a> UnwindSafe for SubscribeReposMessage<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.