pub struct SetRequest {
pub peer: PeerId,
pub context: Option<SetContext>,
pub operation: SetOperation,
}Expand description
Входящий запрос на операцию.
Запрос уже принят: чтобы выполнить операцию, нужно вызвать
operation.commit(&set); чтобы отказаться — уничтожить operation.
Fields§
§peer: PeerIdУзел, приславший запрос.
context: Option<SetContext>Сообщение, которым вторая сторона сопроводила запрос.
operation: SetOperationОперация, готовая к запуску.
Auto Trait Implementations§
impl !RefUnwindSafe for SetRequest
impl !UnwindSafe for SetRequest
impl Freeze for SetRequest
impl Send for SetRequest
impl Sync for SetRequest
impl Unpin for SetRequest
impl UnsafeUnpin for SetRequest
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