pub struct Response {
pub common: Common,
pub data: ResponseKind,
}
Expand description
Generic Response message
Fields§
§common: Common
§data: ResponseKind
Implementations§
Source§impl Response
impl Response
pub fn new( from: Id, id: RequestId, data: ResponseKind, flags: Flags, ) -> Response
pub fn flags(&mut self) -> &mut Flags
pub fn with_remote_address(self, addr: Address) -> Self
pub fn set_public_key(&mut self, pk: PublicKey)
pub fn with_public_key(self, pk: PublicKey) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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