pub struct LabeledCanisterDiagnosticsRequest { /* private fields */ }Expand description
One caller-labeled exact diagnostic request in a collect-all batch.
Implementations§
Source§impl LabeledCanisterDiagnosticsRequest
impl LabeledCanisterDiagnosticsRequest
Sourcepub fn new(
label: impl Into<String>,
request: CanisterDiagnosticsRequest,
) -> Self
pub fn new( label: impl Into<String>, request: CanisterDiagnosticsRequest, ) -> Self
Attach a stable caller-facing label to an exact diagnostic request.
Sourcepub const fn request(&self) -> CanisterDiagnosticsRequest
pub const fn request(&self) -> CanisterDiagnosticsRequest
Exact controller-aware request.
Sourcepub fn into_parts(self) -> (String, CanisterDiagnosticsRequest)
pub fn into_parts(self) -> (String, CanisterDiagnosticsRequest)
Consume the labeled request into its caller label and exact request.
Trait Implementations§
Source§impl Clone for LabeledCanisterDiagnosticsRequest
impl Clone for LabeledCanisterDiagnosticsRequest
Source§fn clone(&self) -> LabeledCanisterDiagnosticsRequest
fn clone(&self) -> LabeledCanisterDiagnosticsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for LabeledCanisterDiagnosticsRequest
impl StructuralPartialEq for LabeledCanisterDiagnosticsRequest
Auto Trait Implementations§
impl Freeze for LabeledCanisterDiagnosticsRequest
impl RefUnwindSafe for LabeledCanisterDiagnosticsRequest
impl Send for LabeledCanisterDiagnosticsRequest
impl Sync for LabeledCanisterDiagnosticsRequest
impl Unpin for LabeledCanisterDiagnosticsRequest
impl UnsafeUnpin for LabeledCanisterDiagnosticsRequest
impl UnwindSafe for LabeledCanisterDiagnosticsRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.