Trait HeadersMethods

Source
pub(crate) trait HeadersMethods<D>
where D: DomTypes,
{ // Required methods fn Append(&self, name: ByteString, value: ByteString) -> Result<(), Error>; fn Delete(&self, name: ByteString) -> Result<(), Error>; fn Get(&self, name: ByteString) -> Result<Option<ByteString>, Error>; fn GetSetCookie(&self) -> Vec<ByteString>; fn Has(&self, name: ByteString) -> Result<bool, Error>; fn Set(&self, name: ByteString, value: ByteString) -> Result<(), Error>; fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, init: Option<ByteStringSequenceSequenceOrByteStringByteStringRecord>, ) -> Result<Root<Dom<<D as DomTypes>::Headers>>, Error>; }

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§