pub struct GetNewScidsRequest {
pub node_pk: NodePk,
pub min_scids: usize,
}Expand description
A request to get at least min_scids Scids from the LSP, inclusive
of any existing Scids. The node requests this from the LSP when it
detects that it needs the LSP to generate a few more.
Example:
- Node detects it has 3
Scids, but it wants 2 new scids to make 5 total. - Node sets
min_scidsto 5. - LSP sees that the node already has 3, generates 2 new ones, and returns 5.
Fields§
§node_pk: NodePk§min_scids: usizeTrait Implementations§
Source§impl Clone for GetNewScidsRequest
impl Clone for GetNewScidsRequest
Source§fn clone(&self) -> GetNewScidsRequest
fn clone(&self) -> GetNewScidsRequest
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 GetNewScidsRequest
impl Debug for GetNewScidsRequest
Source§impl<'de> Deserialize<'de> for GetNewScidsRequest
impl<'de> Deserialize<'de> for GetNewScidsRequest
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 PartialEq for GetNewScidsRequest
impl PartialEq for GetNewScidsRequest
Source§impl Serialize for GetNewScidsRequest
impl Serialize for GetNewScidsRequest
impl Eq for GetNewScidsRequest
impl StructuralPartialEq for GetNewScidsRequest
Auto Trait Implementations§
impl Freeze for GetNewScidsRequest
impl RefUnwindSafe for GetNewScidsRequest
impl Send for GetNewScidsRequest
impl Sync for GetNewScidsRequest
impl Unpin for GetNewScidsRequest
impl UnsafeUnpin for GetNewScidsRequest
impl UnwindSafe for GetNewScidsRequest
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