#[non_exhaustive]pub enum LogDestination {
File,
Tracing,
}Expand description
Where the SDK writes its own log lines. The destination is process-wide: the first handle built decides it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File
The file agentcat.log in the user’s home directory, one line per message.
Tracing
tracing events with the target agentcat.
The delivery thread of each handle emits these events, not the thread of the tool call. A
subscriber that tracing::subscriber::with_default sets on another thread does not see
them. Set a global subscriber instead, for example with
tracing::subscriber::set_global_default.
Trait Implementations§
Source§impl Clone for LogDestination
impl Clone for LogDestination
impl Copy for LogDestination
Source§impl Debug for LogDestination
impl Debug for LogDestination
Source§impl Default for LogDestination
impl Default for LogDestination
impl Eq for LogDestination
Source§impl PartialEq for LogDestination
impl PartialEq for LogDestination
impl StructuralPartialEq for LogDestination
Auto Trait Implementations§
impl Freeze for LogDestination
impl RefUnwindSafe for LogDestination
impl Send for LogDestination
impl Sync for LogDestination
impl Unpin for LogDestination
impl UnsafeUnpin for LogDestination
impl UnwindSafe for LogDestination
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
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.