pub struct ResourceSendOptions {
pub auto_compress: bool,
pub app_flag: bool,
}Expand description
Options for an outgoing Resource.
Fields§
§auto_compress: boolAttempt compression and use the result only when smaller.
app_flag: boolApplication-defined flag carried in the advertisement (bit 6 of its
flags, Python Resource(app_flag=...)) and reported to the receiver.
Trait Implementations§
Source§impl Clone for ResourceSendOptions
impl Clone for ResourceSendOptions
impl Copy for ResourceSendOptions
Source§impl Debug for ResourceSendOptions
impl Debug for ResourceSendOptions
Source§impl Default for ResourceSendOptions
impl Default for ResourceSendOptions
impl Eq for ResourceSendOptions
Source§impl PartialEq for ResourceSendOptions
impl PartialEq for ResourceSendOptions
impl StructuralPartialEq for ResourceSendOptions
Auto Trait Implementations§
impl Forget for ResourceSendOptions
impl Freeze for ResourceSendOptions
impl RefUnwindSafe for ResourceSendOptions
impl Send for ResourceSendOptions
impl Sync for ResourceSendOptions
impl Unpin for ResourceSendOptions
impl UnsafeUnpin for ResourceSendOptions
impl UnwindSafe for ResourceSendOptions
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