pub struct CanisterDiagnosticsRequest { /* private fields */ }Expand description
Exact controller-aware inputs for one best-effort diagnostic collection.
Implementations§
Source§impl CanisterDiagnosticsRequest
impl CanisterDiagnosticsRequest
Sourcepub fn new(
canister_id: Principal,
status_sender: Principal,
log_sender: Principal,
) -> Self
pub fn new( canister_id: Principal, status_sender: Principal, log_sender: Principal, ) -> Self
Create a request with independent, exact status and log senders.
Anonymous access remains available only by explicitly supplying
Principal::anonymous for the corresponding operation.
Sourcepub const fn with_log_limits(self, limits: CanisterLogRenderLimits) -> Self
pub const fn with_log_limits(self, limits: CanisterLogRenderLimits) -> Self
Override the bounds used to retain and render fetched log content.
Sourcepub const fn canister_id(self) -> Principal
pub const fn canister_id(self) -> Principal
Target canister.
Sourcepub const fn status_sender(self) -> Principal
pub const fn status_sender(self) -> Principal
Exact sender supplied to canister_status.
Sourcepub const fn log_sender(self) -> Principal
pub const fn log_sender(self) -> Principal
Exact sender supplied to fetch_canister_logs.
Sourcepub const fn log_limits(self) -> CanisterLogRenderLimits
pub const fn log_limits(self) -> CanisterLogRenderLimits
Log rendering bounds.
Trait Implementations§
Source§impl Clone for CanisterDiagnosticsRequest
impl Clone for CanisterDiagnosticsRequest
Source§fn clone(&self) -> CanisterDiagnosticsRequest
fn clone(&self) -> CanisterDiagnosticsRequest
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 Copy for CanisterDiagnosticsRequest
Source§impl Debug for CanisterDiagnosticsRequest
impl Debug for CanisterDiagnosticsRequest
impl Eq for CanisterDiagnosticsRequest
impl StructuralPartialEq for CanisterDiagnosticsRequest
Auto Trait Implementations§
impl Freeze for CanisterDiagnosticsRequest
impl RefUnwindSafe for CanisterDiagnosticsRequest
impl Send for CanisterDiagnosticsRequest
impl Sync for CanisterDiagnosticsRequest
impl Unpin for CanisterDiagnosticsRequest
impl UnsafeUnpin for CanisterDiagnosticsRequest
impl UnwindSafe for CanisterDiagnosticsRequest
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.