pub enum SpawnAction {
Create(PeerCreateParameters),
}Expand description
The kind of action that the spawner requests to the system. Currently a spawner can only create peers
Variants§
Create(PeerCreateParameters)
Implementations§
Source§impl SpawnAction
impl SpawnAction
pub fn create( id: PeerId, addr: SocketAddr, normalized_addr: NormalizedAddress, nts: Option<Box<PeerNtsData>>, ) -> SpawnAction
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnAction
impl !UnwindSafe for SpawnAction
impl Freeze for SpawnAction
impl Send for SpawnAction
impl Sync for SpawnAction
impl Unpin for SpawnAction
impl UnsafeUnpin for SpawnAction
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