pub struct Options {
pub attributes: Option<NodeAttributesQuery>,
pub create_attributes: Option<MutableNodeAttributes>,
}
Expand description
Options which can be used when opening nodes. Unlike Flags
, these options are designed for
specific use cases (e.g. to reduce round-trip latency when requesting attributes).
Fields§
§attributes: Option<NodeAttributesQuery>
§create_attributes: Option<MutableNodeAttributes>
Trait Implementations§
Source§impl Encodable for Options
impl Encodable for Options
Source§type Encoded = WireOptions
type Encoded = WireOptions
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl TakeFrom<WireOptions> for Options
impl TakeFrom<WireOptions> for Options
Source§fn take_from(from: &WireOptions) -> Self
fn take_from(from: &WireOptions) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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