pub struct Server { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Server
impl<'a> FromZendObject<'a> for &'a Server
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Source§impl<'a> FromZendObjectMut<'a> for &'a mut Server
impl<'a> FromZendObjectMut<'a> for &'a mut Server
Source§fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
Source§impl<'a> FromZvalMut<'a> for &'a mut Server
impl<'a> FromZvalMut<'a> for &'a mut Server
Source§impl IntoZendObject for Server
impl IntoZendObject for Server
Source§fn into_zend_object(self) -> Result<ZBox<ZendObject>>
fn into_zend_object(self) -> Result<ZBox<ZendObject>>
self into a Zend object. Read moreSource§impl IntoZval for Server
impl IntoZval for Server
Source§impl PhpClassImpl<Server> for PhpClassImplCollector<Server>
impl PhpClassImpl<Server> for PhpClassImplCollector<Server>
fn get_methods(self) -> Vec<(FunctionBuilder<'static>, MethodFlags)>
fn get_method_props(self) -> &'static [PropertyDescriptor<Server>]
fn get_constructor(self) -> Option<ConstructorMeta<Server>>
fn get_constants( self, ) -> &'static [(&'static str, &'static dyn IntoZvalDyn, &'static [&'static str])]
Source§impl RegisteredClass for Server
impl RegisteredClass for Server
Source§const CLASS_NAME: &'static str = "Folk\\Server"
const CLASS_NAME: &'static str = "Folk\\Server"
Source§const BUILDER_MODIFIER: Option<fn(ClassBuilder) -> ClassBuilder> = ::std::option::Option::None
const BUILDER_MODIFIER: Option<fn(ClassBuilder) -> ClassBuilder> = ::std::option::Option::None
Source§const EXTENDS: Option<ClassEntryInfo> = None
const EXTENDS: Option<ClassEntryInfo> = None
Source§const IMPLEMENTS: &'static [ClassEntryInfo]
const IMPLEMENTS: &'static [ClassEntryInfo]
Source§const FLAGS: ClassFlags
const FLAGS: ClassFlags
Source§const DOC_COMMENTS: &'static [&'static str]
const DOC_COMMENTS: &'static [&'static str]
Source§fn get_metadata() -> &'static ClassMetadata<Self>
fn get_metadata() -> &'static ClassMetadata<Self>
Source§fn static_properties() -> &'static [(&'static str, PropertyFlags, Option<&'static (dyn IntoZvalDyn + Sync)>, &'static [&'static str])]
fn static_properties() -> &'static [(&'static str, PropertyFlags, Option<&'static (dyn IntoZvalDyn + Sync)>, &'static [&'static str])]
Source§fn method_properties() -> &'static [PropertyDescriptor<Self>]
fn method_properties() -> &'static [PropertyDescriptor<Self>]
#[php(getter)]/#[php(setter)]).
Resolved via autoref specialization in the macro-generated code.Source§fn method_builders() -> Vec<(FunctionBuilder<'static>, MethodFlags)>
fn method_builders() -> Vec<(FunctionBuilder<'static>, MethodFlags)>
Source§fn constructor() -> Option<ConstructorMeta<Self>>
fn constructor() -> Option<ConstructorMeta<Self>>
Source§fn constants() -> &'static [(&'static str, &'static dyn IntoZvalDyn, &'static [&'static str])]
fn constants() -> &'static [(&'static str, &'static dyn IntoZvalDyn, &'static [&'static str])]
Source§fn interface_implementations() -> Vec<ClassEntryInfo> ⓘ
fn interface_implementations() -> Vec<ClassEntryInfo> ⓘ
#[php_impl_interface] trait implementations. Read moreSource§fn interface_method_implementations() -> Vec<(FunctionBuilder<'static>, MethodFlags)>
fn interface_method_implementations() -> Vec<(FunctionBuilder<'static>, MethodFlags)>
#[php_impl_interface] trait implementations. Read moreSource§fn default_init() -> Option<Self>
fn default_init() -> Option<Self>
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);