pub struct NeighboursControl {
pub from: u32,
pub cmd: Vec<u8>,
pub signature: Vec<u8>,
}Fields§
§from: u32§cmd: Vec<u8>§signature: Vec<u8>Implementations§
Source§impl NeighboursControl
impl NeighboursControl
pub fn validate( &self, now: u64, auth: &dyn Authorization, ) -> Result<NeighboursControlCmds, ()>
pub fn build( now: u64, from: u32, cmd: NeighboursControlCmds, auth: &dyn Authorization, ) -> NeighboursControl
Trait Implementations§
Source§impl Clone for NeighboursControl
impl Clone for NeighboursControl
Source§fn clone(&self) -> NeighboursControl
fn clone(&self) -> NeighboursControl
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 Debug for NeighboursControl
impl Debug for NeighboursControl
Source§impl<'de> Deserialize<'de> for NeighboursControl
impl<'de> Deserialize<'de> for NeighboursControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeighboursControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NeighboursControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NeighboursControl
impl Serialize for NeighboursControl
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&[u8]> for NeighboursControl
impl TryFrom<&[u8]> for NeighboursControl
Auto Trait Implementations§
impl Freeze for NeighboursControl
impl RefUnwindSafe for NeighboursControl
impl Send for NeighboursControl
impl Sync for NeighboursControl
impl Unpin for NeighboursControl
impl UnwindSafe for NeighboursControl
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