pub struct SingBoxProfileDocumentCodec;Expand description
The neutral sing-box JSON document codec.
Trait Implementations§
Source§impl Clone for SingBoxProfileDocumentCodec
impl Clone for SingBoxProfileDocumentCodec
impl Copy for SingBoxProfileDocumentCodec
Source§impl Debug for SingBoxProfileDocumentCodec
impl Debug for SingBoxProfileDocumentCodec
Source§impl ProfileDocumentCodecPort for SingBoxProfileDocumentCodec
impl ProfileDocumentCodecPort for SingBoxProfileDocumentCodec
Source§fn scope(&self) -> ProfileDocumentCodecScope
fn scope(&self) -> ProfileDocumentCodecScope
Return immutable adapter identity without performing I/O.
Source§fn inspect(&self, raw_bytes: &[u8]) -> Result<DocumentValidation, PortError>
fn inspect(&self, raw_bytes: &[u8]) -> Result<DocumentValidation, PortError>
Inspect the supplied bytes without mutating them or invoking runtime work.
Source§fn insert_snippet(
&self,
_content: &str,
_snippet_id: &str,
_caret: ProfileDocumentCaret,
) -> Result<ProfileDocumentSnippetOutcome, PortError>
fn insert_snippet( &self, _content: &str, _snippet_id: &str, _caret: ProfileDocumentCaret, ) -> Result<ProfileDocumentSnippetOutcome, PortError>
Insert one adapter-owned editor snippet without touching profile
storage or runtime state. Formats without snippet support fail closed.
Auto Trait Implementations§
impl Forget for SingBoxProfileDocumentCodec
impl Freeze for SingBoxProfileDocumentCodec
impl Move for SingBoxProfileDocumentCodec
impl RefUnwindSafe for SingBoxProfileDocumentCodec
impl Send for SingBoxProfileDocumentCodec
impl Sync for SingBoxProfileDocumentCodec
impl Unpin for SingBoxProfileDocumentCodec
impl UnsafeUnpin for SingBoxProfileDocumentCodec
impl UnwindSafe for SingBoxProfileDocumentCodec
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